package com.bckj.freshnow.cart.convert;

import com.bckj.fastboot.core.mapstruct.MapStructConfig;
import com.bckj.freshnow.cart.entity.CartItem;
import com.bckj.freshnow.cart.model.CartItemResponse;
import com.bckj.freshnow.cart.model.CartItemRequest;

import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;

/**
 * 购物车商品表(CartItem)数据转换
 *
 * @author makejava
 * @since 2025-04-28 15:27:50
 */
@Mapper(config = MapStructConfig.class)
public interface CartItemConvert {

    CartItem request2Bean(CartItemRequest request);
    
    CartItemResponse bean2Response(CartItem bean);
}
